package com.nameless.controller.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.nameless.entity.CarComment;
import com.nameless.entity.Client;
import com.nameless.entity.Order;
import com.nameless.service.CommentService;
import com.nameless.util.JwtUtil;
import com.nameless.util.WebUtils;
import com.nameless.vo.Result;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.weaver.ast.Or;
import org.checkerframework.checker.units.qual.C;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author ：潘淼淼
 * @date ：Created in 2023/3/2 10:40
 * @description：
 * @modified By：
 * @version:
 */
@RestController
//@CrossOrigin
@Slf4j
@Api
@RequestMapping("/feedback/api/comment")
public class CommentController {
    @Autowired
    private CommentService carCommentService;
    @PostMapping("/carComment")
    public Result insert(@RequestBody CarComment carComment) {
        return carCommentService.insert(carComment);
    }
}